#include <iostream>
#include <vector>
#include "fractie.h"
int main()
{
    int a,b;
    fractie x,y;
    cin>>a>>b;
    x=x+a;
    y=y+b;
    cout<<x<<y<<endl;
    x=x*a;
    y=y/b;
    cout<<x<<y;
}